<?php

class Admin_Create_Flow_Rule {

	/**
	 * Make changes to the database.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('sys_flow_rule', function($table) {

			$table->engine = 'InnoDB';

		    $table->increments('sfr_id');
		    $table->integer('sf_id');
		    $table->integer('sfs_id');
		    $table->integer('sfr_next');
		    $table->integer('sfr_state');
		    $table->integer('sur_id');
		    $table->integer('sfr_page');
		    $table->integer('sfr_condition');
		    $table->timestamps();

		});
	}

	/**
	 * Revert the changes to the database.
	 *
	 * @return void
	 */
	public function down()
	{
		//
	}

}